.class public Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;
.super Landroid/widget/HorizontalScrollView;
.source "FontView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;
    }
.end annotation


# instance fields
.field private a:Landroid/widget/TableLayout;

.field private b:Landroid/widget/TableRow;

.field private c:Landroid/widget/TableRow;

.field private d:Landroid/widget/TableRow;

.field private e:Landroid/widget/TextView;

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:Landroid/content/Context;

.field private k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;",
            ">;"
        }
    .end annotation
.end field

.field private l:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;

.field private n:Les/ua;

.field private o:I

.field private p:I

.field private q:I

.field private r:I

.field private s:I

.field private t:Z

.field private final u:I

.field private v:I

.field private w:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    sget p2, Les/x4;->font_typeface_image_view_id:I

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->u:I

    .line 5
    invoke-static {p1}, Lcom/esfile/screen/recorder/utils/g;->i(Landroid/content/Context;)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->f:I

    .line 6
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/v4;->durec_caption_scroll_view_height:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->g:I

    .line 7
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/v4;->durec_caption_typeface_margin_top:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->o:I

    .line 8
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/v4;->durec_caption_typeface_margin_left:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->p:I

    .line 9
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/v4;->durec_caption_fontview_padding_top:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->q:I

    .line 10
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/v4;->durec_caption_fontview_padding_left:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->r:I

    .line 11
    iget p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->f:I

    mul-int/lit8 p2, p2, 0x2

    sub-int/2addr p3, p2

    iget p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->p:I

    mul-int/lit8 p2, p2, 0x6

    sub-int/2addr p3, p2

    div-int/lit8 p3, p3, 0x3

    iput p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->h:I

    .line 12
    iget p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->g:I

    iget p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->q:I

    mul-int/lit8 p3, p3, 0x2

    sub-int/2addr p2, p3

    iget p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->o:I

    mul-int/lit8 p3, p3, 0x6

    sub-int/2addr p2, p3

    div-int/lit8 p2, p2, 0x3

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->i:I

    .line 13
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string p3, "mScreenWidth="

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->f:I

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p3, "mFontViewHeight="

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget p3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->g:I

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    const-string p3, "fontview"

    invoke-static {p3, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 14
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "mImageTopMargin="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->o:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "mImageLeftMargin="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->p:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p3, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "mFontViewTopPadding="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->q:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "mFontViewLeftPadding="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->r:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p3, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "mFontItemWidth="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->h:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "mFontItemHeight="

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->i:I

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {p3, p2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 17
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    .line 18
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/u4;->durec_colorPrimary:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->v:I

    .line 19
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    sget p3, Les/u4;->durec_caption_typeface_normal_color:I

    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->w:I

    .line 20
    invoke-static {}, Les/ua;->d()Les/ua;

    move-result-object p2

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->n:Les/ua;

    .line 21
    invoke-static {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b;->a(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    .line 22
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b(Ljava/util/List;)V

    .line 23
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c()Ljava/util/Map;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    .line 24
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b()V

    .line 25
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    if-eqz p1, :cond_0

    .line 26
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Ljava/util/List;)V

    :cond_0
    return-void
.end method

.method private a(F)I
    .locals 1

    .line 60
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    mul-float p1, p1, v0

    const/high16 v0, 0x3f000000    # 0.5f

    add-float/2addr p1, v0

    float-to-int p1, p1

    return p1
.end method

.method private a(Landroid/widget/TableRow;Ljava/lang/String;)Landroid/widget/TextView;
    .locals 3

    if-eqz p1, :cond_1

    const/4 v0, 0x0

    .line 53
    :goto_0
    invoke-virtual {p1}, Landroid/widget/TableRow;->getChildCount()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 54
    invoke-virtual {p1, v0}, Landroid/widget/TableRow;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 55
    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->u:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->getTag(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;)Les/ua;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->n:Les/ua;

    return-object p0
.end method

.method private declared-synchronized a()V
    .locals 2

    monitor-enter p0

    const/4 v0, 0x0

    .line 10
    :try_start_0
    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    .line 11
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b:Landroid/widget/TableRow;

    invoke-virtual {v1}, Landroid/widget/TableRow;->removeAllViews()V

    .line 12
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c:Landroid/widget/TableRow;

    invoke-virtual {v1}, Landroid/widget/TableRow;->removeAllViews()V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d:Landroid/widget/TableRow;

    invoke-virtual {v1}, Landroid/widget/TableRow;->removeAllViews()V

    .line 14
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    if-eqz v1, :cond_0

    .line 15
    :goto_0
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 16
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;

    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 17
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    goto :goto_2

    :goto_1
    throw v0

    :goto_2
    goto :goto_1
.end method

.method private a(Landroid/view/View;)V
    .locals 2

    .line 56
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->e:Landroid/widget/TextView;

    if-eqz v0, :cond_1

    if-ne v0, p1, :cond_0

    goto :goto_0

    .line 57
    :cond_0
    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->w:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 58
    check-cast p1, Landroid/widget/TextView;

    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->v:I

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setTextColor(I)V

    .line 59
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->e:Landroid/widget/TextView;

    :cond_1
    :goto_0
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)V
    .locals 0

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)V

    return-void
.end method

.method private declared-synchronized a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)V
    .locals 9

    monitor-enter p0

    if-eqz p1, :cond_7

    .line 18
    :try_start_0
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->a:Ljava/lang/String;

    if-nez v0, :cond_0

    goto/16 :goto_3

    .line 19
    :cond_0
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->a:Ljava/lang/String;

    .line 20
    iget p1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->c:F
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v1, 0x0

    .line 21
    :try_start_1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v2

    const-string v3, "fontview"

    .line 22
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "name= "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, " textSize="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v3, v0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 24
    new-instance v3, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/AutoFitTextView;

    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-direct {v3, v4}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/AutoFitTextView;-><init>(Landroid/content/Context;)V

    .line 25
    new-instance v4, Landroid/widget/TableRow$LayoutParams;

    iget v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->h:I

    iget v6, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->i:I

    invoke-direct {v4, v5, v6}, Landroid/widget/TableRow$LayoutParams;-><init>(II)V

    .line 26
    iget v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->p:I

    iget v6, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->o:I

    iget v7, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->p:I

    iget v8, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->o:I

    invoke-virtual {v4, v5, v6, v7, v8}, Landroid/widget/TableRow$LayoutParams;->setMargins(IIII)V

    .line 27
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 28
    invoke-virtual {v3}, Landroid/widget/TextView;->setSingleLine()V

    .line 29
    invoke-virtual {v3, v1}, Landroid/widget/TextView;->setIncludeFontPadding(Z)V

    .line 30
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    sget v5, Les/z4;->durec_no_translate_app_name:I

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 31
    invoke-virtual {v3, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V

    .line 32
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(F)I

    move-result p1

    int-to-float p1, p1

    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setTextSize(F)V

    const/16 p1, 0x11

    .line 33
    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setGravity(I)V

    .line 34
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->u:I

    invoke-virtual {v3, p1, v0}, Landroid/widget/TextView;->setTag(ILjava/lang/Object;)V

    .line 35
    invoke-virtual {v3, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 36
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    if-nez p1, :cond_1

    .line 37
    iput-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->e:Landroid/widget/TextView;

    .line 38
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->v:I

    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    .line 39
    :cond_1
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->w:I

    invoke-virtual {v3, p1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 40
    :goto_0
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    rem-int/lit8 p1, p1, 0x3

    const/4 v0, 0x1

    if-eqz p1, :cond_4

    if-eq p1, v0, :cond_3

    const/4 v2, 0x2

    if-eq p1, v2, :cond_2

    goto :goto_1

    .line 41
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d:Landroid/widget/TableRow;

    invoke-virtual {p1, v3}, Landroid/widget/TableRow;->addView(Landroid/view/View;)V

    goto :goto_1

    .line 42
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c:Landroid/widget/TableRow;

    invoke-virtual {p1, v3}, Landroid/widget/TableRow;->addView(Landroid/view/View;)V

    goto :goto_1

    .line 43
    :cond_4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b:Landroid/widget/TableRow;

    invoke-virtual {p1, v3}, Landroid/widget/TableRow;->addView(Landroid/view/View;)V

    .line 44
    :goto_1
    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    add-int/2addr p1, v0

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :catch_0
    move-exception p1

    .line 45
    :try_start_2
    sget-boolean v0, Les/u6;->b:Z

    if-eqz v0, :cond_5

    const-string v0, "fontview"

    .line 46
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 47
    :cond_5
    :goto_2
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getVisibility()I

    move-result p1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_6

    iget p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    if-lez p1, :cond_6

    .line 48
    invoke-virtual {p0, v1}, Landroid/widget/HorizontalScrollView;->setVisibility(I)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 49
    :cond_6
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1

    .line 50
    :cond_7
    :goto_3
    monitor-exit p0

    return-void
.end method

.method private a(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 4
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 5
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;

    .line 6
    iget-object v2, v1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->a:Ljava/lang/String;

    .line 7
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v3, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 8
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)Les/ta;

    move-result-object v1

    .line 9
    invoke-virtual {v1}, Les/ta;->a()V

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;Ljava/lang/String;)Z
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;)Z
    .locals 2

    .line 51
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_1

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 52
    :cond_0
    :try_start_0
    invoke-static {p1}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x1

    return p1

    :catch_0
    :cond_1
    :goto_0
    return v1
.end method

.method private b(Ljava/lang/String;)Landroid/widget/TextView;
    .locals 1

    .line 26
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 27
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->e:Landroid/widget/TextView;

    return-object p1

    .line 28
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b:Landroid/widget/TableRow;

    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Landroid/widget/TableRow;Ljava/lang/String;)Landroid/widget/TextView;

    move-result-object v0

    if-nez v0, :cond_1

    .line 29
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c:Landroid/widget/TableRow;

    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Landroid/widget/TableRow;Ljava/lang/String;)Landroid/widget/TextView;

    move-result-object v0

    if-nez v0, :cond_1

    .line 30
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d:Landroid/widget/TableRow;

    invoke-direct {p0, v0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Landroid/widget/TableRow;Ljava/lang/String;)Landroid/widget/TextView;

    move-result-object v0

    if-nez v0, :cond_1

    .line 31
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->e:Landroid/widget/TextView;

    return-object p1

    :cond_1
    return-object v0
.end method

.method private b(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)Les/ta;
    .locals 5

    .line 2
    iget-object v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->a:Ljava/lang/String;

    .line 3
    iget-object v1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->b:Ljava/lang/String;

    const-string v2, "."

    .line 4
    invoke-virtual {v1, v2}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v2

    if-lez v2, :cond_0

    .line 5
    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    :cond_0
    const-string v2, ""

    .line 6
    :goto_0
    new-instance v3, Les/ta;

    new-instance v4, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$a;

    invoke-direct {v4, p0, v0, v2, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;Ljava/lang/String;Ljava/lang/String;Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;)V

    invoke-direct {v3, v1, v4}, Les/ta;-><init>(Ljava/lang/String;Lcom/android/volley/j$b;)V

    return-object v3
.end method

.method private b()V
    .locals 2

    .line 11
    new-instance v0, Landroid/widget/TableLayout;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TableLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    .line 12
    new-instance v0, Landroid/widget/TableLayout$LayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/widget/TableLayout$LayoutParams;-><init>(II)V

    .line 13
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    invoke-virtual {v1, v0}, Landroid/widget/TableLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 14
    new-instance v0, Landroid/widget/TableRow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TableRow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b:Landroid/widget/TableRow;

    .line 15
    new-instance v0, Landroid/widget/TableRow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TableRow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c:Landroid/widget/TableRow;

    .line 16
    new-instance v0, Landroid/widget/TableRow;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->j:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/widget/TableRow;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d:Landroid/widget/TableRow;

    .line 17
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a()V

    .line 18
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b:Landroid/widget/TableRow;

    invoke-virtual {v0, v1}, Landroid/widget/TableLayout;->addView(Landroid/view/View;)V

    .line 19
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->c:Landroid/widget/TableRow;

    invoke-virtual {v0, v1}, Landroid/widget/TableLayout;->addView(Landroid/view/View;)V

    .line 20
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d:Landroid/widget/TableRow;

    invoke-virtual {v0, v1}, Landroid/widget/TableLayout;->addView(Landroid/view/View;)V

    .line 21
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 22
    invoke-virtual {p0}, Landroid/widget/HorizontalScrollView;->removeAllViews()V

    .line 23
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a:Landroid/widget/TableLayout;

    invoke-virtual {p0, v0}, Landroid/widget/HorizontalScrollView;->addView(Landroid/view/View;)V

    .line 24
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->s:I

    if-nez v0, :cond_1

    const/4 v0, 0x4

    .line 25
    invoke-virtual {p0, v0}, Landroid/widget/HorizontalScrollView;->setVisibility(I)V

    :cond_1
    return-void
.end method

.method private b(Ljava/util/List;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;",
            ">;)V"
        }
    .end annotation

    const-string v0, "fontview"

    if-nez p1, :cond_0

    const-string p1, "print null"

    .line 7
    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_0
    const/4 v1, 0x0

    .line 8
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 9
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;

    .line 10
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "print: info: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->t:Z

    return p0
.end method

.method private c(Ljava/lang/String;)Landroid/graphics/Typeface;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 3
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    :try_start_0
    invoke-static {v0}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object p1

    :catch_0
    move-exception v2

    .line 5
    :try_start_1
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v3, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 6
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/io/File;->delete()Z

    .line 7
    throw v2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :catchall_0
    :cond_0
    return-object v1
.end method

.method private c()Ljava/util/Map;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 1
    invoke-static {}, Les/ua;->d()Les/ua;

    move-result-object v0

    invoke-virtual {v0}, Les/ua;->b()Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method private d()V
    .locals 0

    return-void
.end method


# virtual methods
.method public getDefaultTypefaceWrapper()Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;
    .locals 5

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;-><init>()V

    .line 2
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    if-eqz v1, :cond_2

    invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_1

    :cond_0
    const/4 v1, 0x0

    .line 3
    :goto_0
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->k:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;

    if-eqz v2, :cond_1

    .line 5
    iget-object v2, v2, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/b$a;->a:Ljava/lang/String;

    .line 6
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v3, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 7
    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v3, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    .line 8
    new-instance v4, Ljava/io/File;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_1

    .line 9
    :try_start_0
    invoke-static {v3}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v3

    iput-object v3, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;->a:Landroid/graphics/Typeface;

    .line 10
    iput-object v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;->b:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    :goto_1
    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;

    if-eqz v0, :cond_1

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Landroid/view/View;)V

    .line 3
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->u:I

    invoke-virtual {p1, v0}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;-><init>()V

    if-eqz p1, :cond_0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->l:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-eqz v1, :cond_0

    .line 6
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 7
    invoke-static {v1}, Landroid/graphics/Typeface;->createFromFile(Ljava/lang/String;)Landroid/graphics/Typeface;

    move-result-object v2

    .line 8
    iput-object v2, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;->a:Landroid/graphics/Typeface;

    .line 9
    iput-object p1, v0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;->b:Ljava/lang/String;

    .line 10
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "typeface= "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, "name= "

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "path= "

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v1, "fontview"

    invoke-static {v1, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->d()V

    .line 12
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;

    invoke-interface {p1, v0}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;->a(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;)V

    :cond_1
    return-void
.end method

.method protected onMeasure(II)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2}, Landroid/widget/HorizontalScrollView;->onMeasure(II)V

    return-void
.end method

.method public setCaptionPickerVisibility(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->t:Z

    return-void
.end method

.method public setOnFontPickerClickListener(Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->m:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView$b;

    return-void
.end method

.method public setSelectedTypeface(Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->b(Ljava/lang/String;)Landroid/widget/TextView;

    move-result-object p1

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/FontView;->a(Landroid/view/View;)V

    return-void
.end method
